package com.ruoyi.school.domain;

import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 评论模块对象 common
 * 
 * @author ruoyi
 * @date 2024-04-10
 */
@Data
@Accessors(chain = true)
public class Common extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 父id */
    @Excel(name = "父id")
    private Long parentId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String userPic;

    @Excel(name = "loveid")
    private Long loveId;

    private List<Common> commonList;

    @Excel(name = "toid")
    private Long toUserId;

    @Excel(name = "touser")
    private String toUserName;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("userPic", getUserPic())
            .toString();
    }
}
